<?php
/**
 * 图片册
 */
use LaravelBook\Ardent\Ardent;

class Thumb extends Ardent {

    protected $table = 'thumbs';

    /**
     * Ardent validation rules
     *
     * @var array
     */
    public static $rules = array(
        'path' => 'required|between:1,255'
    );

    public function thumbable()
    {
        return $this->morphTo();
    }
}
